package com.mall.b2c;

public class Constants {
	/** cookie中的JSESSIONID名称 **/
	public static final String JSESSION_COOKIE = "JSESSIONID";
	/** 系统id **/
	public static final int SYSTEM_ID = 1;
	/** 登陆是否显示验证码 **/
	public static final String LOGIN_SHOW_CODE = "showCode";
	/** 登陆错误次数（cache） **/
	public static final String LOGIN_FAIL_COUNT = "loginFailCount";
	/** 保存登录会员ID的Session名称 **/
	public static final String PRINCIPAL_SESSION_NAME = "principal_session_name";
	/** 记住用户名cookie值 **/
	public static final String REMEMBER_ME_COOKIE = "rm";
	/** 保存登录会员用户名的Cookie名称 **/
	public static final String LOGIN_MEMBER_USERNAME_COOKIE_NAME = "loginMemberUsername";
	/** 保存用户输入登录名的Cookie名称 **/
	public static final String LOGIN_TEMP_USERNAME_COOKIE_NAME = "loginTempUsername";
	/** 登陆错误3次后需要验证码 **/
	public static final int LOGIN_WITH_CODE = 3;
	/** 未登录时购物车的cookie键值 **/
	public static final String CART_COOKIE_KEY = "ck";
	/** 未登录时购物车的过期时间 **/
	public static final int CART_COOKIE_EXPIRED = 604800;
	/** 购物车商品数量 **/
	public static final String CART_COOKIE_QUANTITY = "cq";
	/** 商品浏览历史记录cookie key值**/
	public static final String HISTORY_GOODSIDS_COOKIE_NAME = "_hgicn";

	/** 过期时间低于多少秒后可重发短信 **/
	public static final int SMS_RESEND_TIME = 420;
	/** 注册短信redis前缀 **/
	public static final String REDIS_REGISTER_SMS_PREFIX = "reg";
	/** 换绑短信redis前缀 **/
	public static final String REDIS_BIND_SMS_PREFIX = "bind";
	/** 忘记密码短信redis前缀 **/
	public static final String REDIS_FORGET_SMS_PREFIX = "forget";
	/** 手机绑定验证码cookie **/
	public static final String MOBILE_BIND_COOKIE = "mb";

	/** 绑定邮箱redis有效期 **/
	public static final int EMAIL_RESEND_TIME = 180;
	/** 绑定邮箱redis前缀 **/
	public static final String REDIS_BIND_EMAIL_PREFIX = "ebind";


	public static final String CURR_STORE_COOKIE_KEY = "curr_store";
	public static final String CURR_STORE_SESSION_KEY = "curr_store_session_info";
	public static final String CURR_STORE_CITY_SESSION_KEY = "curr_store_city_session_info";
	public static final String CURR_STORE_ATTR_KEY = "curr_store";
	public static final String CURR_STORE_CITY_ATTR_KEY = "curr_store_city";

	/** 注册邀请人cookie **/
	public static final String INVITE_COOKIE_NAME = "inviter";
}
